<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <title>资源管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all">
  <link rel="stylesheet" th:href="@{/adminui/dist/css/admin.css}" media="all">
  <link rel="stylesheet" th:href="@{/style/custom.css}" media="all">
</head>
<body>

<div class="layui-fluid">
  <div class="layui-card">
    <div class="layui-form layui-card-header layuiadmin-card-header-auto">
      <div class="layui-form-item">

      </div>
    </div>

    <div class="layui-card-body">
      <div class="layui-btn-group" style="padding-bottom: 10px;">
        <button class="layui-btn layui-btn-normal layui-btn-sm" id="btn-refresh">
          <i class="layui-icon">&#xe666;</i>刷新
        </button>
        <button class="layui-btn layui-btn-normal layui-btn-sm" id="btn-expand">
          <i class="layui-icon">&#xe624;</i>展开
        </button>
        <button class="layui-btn layui-btn-normal layui-btn-sm" id="btn-fold">
          <i class="layui-icon">&#xe67e;</i>折叠
        </button>
      </div>

      <table id="LAY-resource-tree-table" lay-filter="LAY-resource-tree-table"></table>

      <script type="text/html" id="resource-tree-table">
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="add"><i class="layui-icon layui-icon-addition"></i>新增</a>
        <a class="layui-btn layui-btn-xs" lay-event="more">更多 <i class="layui-icon layui-icon-down"></i></a>
      </script>
      <script type="text/html" id="status-switchTpl">
        <input type="checkbox" disabled name="status" value="{{d.status}}" lay-skin="switch" lay-text="启用|禁用" {{ d.status== 'Y' ?'checked' : '' }}>
      </script>
    </div>
  </div>
</div>

<script th:src="@{/layui/layui.js}"></script>
<script>
  layui.config({
    base: '/'
  }).extend({
    resource: 'modules/cm/resource'
  }).use(['resource'], function () {

  });
</script>
</body>
</html>
